package com.chenxiao.Decorator;

/**
 * @Author: CX
 * @Date: Created in  2024/04/03 9:47
 * @version: v1.0
 * @Description: TODO
 **/
public class ConcreteDecoratorB extends Decorator{

    ConcreteDecoratorB(Component component) {
        super(component);
    }

    @Override
    public void operation() {
      System.out.println("我的新装饰模式");
      component.operation();
      System.out.println("装饰后的样子");
    }
}
